package com.lj.job.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.lj.mp.standard.entity.RecordStandardEntity;

/**
 * <p>
 * 定时任务日志
 * </p>
 *
 * @author luojing
 * @since 2025-03-20 15:26:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("schedule_job_log")
public class JobLog extends RecordStandardEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 定时任务id
     */
    private Long jobId;

    /**
     * 执行bean的名称
     */
    private String beanName;

    /**
     * 执行参数
     */
    private String params;

    /**
     * 是否成功
     */
    private Boolean succeed;

    /**
     * 错误信息
     */
    private String error;

    /**
     * 耗时 (单位: ms)
     */
    private Integer times;
}
